package com.banyuan.controller;

import com.banyuan.domain.Account;
import com.banyuan.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

@Controller
public class AccountController {

    @Autowired
    private IAccountService accountService;

    public List<Account> selectAll() {
      return accountService.selectAll();
    }

    public Account selectById(Integer id) {
        return accountService.selectById(id);
    }
}
